package com.itmk.web.goods_category.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.web.goods_category.entity.GoodsCategory;
import com.itmk.web.goods_category.mapper.GoodsCategoryMapper;
import com.itmk.web.goods_category.service.GoodsCategoryService;
import org.springframework.stereotype.Service;

@Service
public class GoodsCategoryServiceImpl extends ServiceImpl<GoodsCategoryMapper,GoodsCategory>
        implements GoodsCategoryService {


    @Override
    public Long MaxId() {
        long categoryId  = this.baseMapper.MaxId()+1;
        this.baseMapper.setMaxId(categoryId+1);
        return categoryId;
    }
}
